package com.fastloan.mgt.verify.enums;

import com.fastloan.utils.PropertiesUtil;

import static com.fastloan.mgt.verify.enums.ApiConstant.RY_SERVER_URL;
import static com.fastloan.mgt.verify.enums.ApiConstant.SERVER_URL;

/**
 * @author yanwe
 * createTime 2017-12-2017/12/8 10:23
 */
public enum ApiStore {

    BANK_CARD(SERVER_URL + PropertiesUtil.getProperty("verify.bankCard")),

    BANK_CARD_TYPE(SERVER_URL + PropertiesUtil.getProperty("verify.bankCardType")),

    BAIDU_SCORE(SERVER_URL + PropertiesUtil.getProperty("verify.baiduScore")),

    LIVING_IDENTITY(SERVER_URL + PropertiesUtil.getProperty("verify.livingIdentity")),

    BBD_TOBACCO_MODEL(SERVER_URL + PropertiesUtil.getProperty("verify.bbdTobaccoModel")),

    BBD_TOBACCO_MODEL_SEND_RESULT(SERVER_URL + PropertiesUtil.getProperty("verify.bbdTobaccoModelSendResult")),

    PERSON_BANK_VERIFY(SERVER_URL + PropertiesUtil.getProperty("verify.personBankVerify")),

    PERSON_BANK_VERIFY_GET_CODE(SERVER_URL + PropertiesUtil.getProperty("verify.personBankGetCode")),

    BBD_TOBACCO_VERIFY(SERVER_URL + PropertiesUtil.getProperty("verify.bbdTobaccoVerify")),

    RY_LOAN( RY_SERVER_URL + PropertiesUtil.getProperty("loan.loan")),

    RY_LOAN_QUERY( RY_SERVER_URL + PropertiesUtil.getProperty("loan.query")),

    RY_REPAYMENT_PLAN( RY_SERVER_URL + PropertiesUtil.getProperty("loan.repaymentPlan")),

    RY_REPAYMENT( RY_SERVER_URL + PropertiesUtil.getProperty("loan.repayment"));

    private String url;

    ApiStore(String url) {
        this.url = url;
    }

    public String getUrl() {
        return url;
    }
}
